function sortByName(){
	sortBy(0);
}

function sortByPrice(){
	sortBy(1);
}

function sortByCuisines(){
	sortBy(2);
}

function sortBy(criteria){
	var res_name = getCookie("searchName");
	var res_cuisine_index = getCookie("searchCuisines");
	var max_price = getCookie("searchMaxPrice");
	var min_price = getCookie("searchMinPrice");	
	resetHtml(res_name,res_cuisine_index,max_price,min_price,criteria);
}